/ Assembly List / LJCDBClientLib / ObjectManager`2 / Delete

Namespace - LJCDBClientLib


Parameters
keyColumns - The record containing the key field values.
filters - The filter values.

Syntax

C#
public Void Delete(DbColumns keyColumns, DbFilters filters = null)

Deletes the records with the specified key values. (E)

Example

C#
// Deletes a record.
private static void Delete(ObjectManager<Person, Persons>; personManager)
{
    // Create Key Columns.
    var keyColumns = new DbColumns()
    {
        Name = "TestNameUpdated"
    };

    // Delete the record.
    personManager.Delete(keyColumns);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.